//
//  UserDefinedCell.m
//  HondaPro_2
//
//  Created by Eric on 13-5-29.
//  Copyright (c) 2013年 glendale. All rights reserved.
//

#import "UserDefinedCell.h"

@implementation UserDefinedCell

@synthesize label1 = _label1;
@synthesize label2 = _label2;
@synthesize label3 = _label3;
@synthesize label4 = _label4;
@synthesize label5 = _label5;

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        
        [self addLabel1ToCell];
        [self addLabel2ToCell];
        [self addLabel3ToCell];
        [self addLabel4ToCell];
        [self addLabel5ToCell];
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

#pragma mark - 给自定义cell添加label

-(void)addLabel1ToCell
{
    UILabel *lbl = [[UILabel alloc] init];
    lbl.backgroundColor = [UIColor clearColor];
    lbl.frame = CGRectMake(0, 0, 100, 25);
    lbl.tag = 1;
    lbl.font = [UIFont fontWithName:@"AmericanTypewriter" size:15];
    [self.contentView addSubview:lbl];
}

-(void)addLabel2ToCell
{
    UILabel *lbl = [[UILabel alloc] init];
    lbl.backgroundColor = [UIColor clearColor];
    lbl.frame = CGRectMake(100, 0, 145, 25);
    lbl.tag = 2;
    lbl.font = [UIFont fontWithName:@"AmericanTypewriter" size:15];
    [self.contentView addSubview:lbl];
}

-(void)addLabel3ToCell
{
    UILabel *lbl = [[UILabel alloc] init];
    lbl.backgroundColor = [UIColor clearColor];
    lbl.frame = CGRectMake(0, 25, 100, 25);
    lbl.tag = 3;
    lbl.font = [UIFont fontWithName:@"AmericanTypewriter" size:15];
    [self.contentView addSubview:lbl];
}

-(void)addLabel4ToCell
{
    UILabel *lbl = [[UILabel alloc] init];
    lbl.backgroundColor = [UIColor clearColor];
    lbl.frame = CGRectMake(100, 25, 145, 25);
    lbl.tag = 4;
    lbl.font = [UIFont fontWithName:@"AmericanTypewriter" size:15];
    [self.contentView addSubview:lbl];
}

-(void)addLabel5ToCell
{
    UILabel *lbl = [[UILabel alloc] init];
    lbl.backgroundColor = [UIColor clearColor];
    lbl.frame = CGRectMake(0, 50, 145+100, 25);
    lbl.tag = 5;
    lbl.font = [UIFont fontWithName:@"AmericanTypewriter" size:15];
    [self.contentView addSubview:lbl];
}

@end
